#include "clickedeventfilter.h"

ClickedEventFilter::ClickedEventFilter(QObject *parent) : QObject(parent)
{

}

bool ClickedEventFilter::eventFilter(QObject *watched, QEvent *event)
{
    //鼠标按下
    if(event->type()==QEvent::MouseButtonPress){
        emit labelCliched(watched);
    }
    //触碰
    if(event->type()==QEvent::TouchEnd){

    }
    return QObject::eventFilter(watched,event);
}
